<style>
	.btn .caret {
	    margin-left: -5px;
	}
</style>
<div class="header">
     <div class="inner_line">
         <div class="header-logo">
             <a href="index.html"><img ng-src="{{toUrl('root/asset/images/home/dnlogo.png')}}" class="logo" /></a>
             <a href="javascript:;" class="qmtit">智慧团建系统</a>
         </div>
         <span ng-controller="LoginCtrl as ctrl">
         	<div class="header-wel">
	          	<div class="header-role btn-group ng-cloak" ng-if="$currentUserInfo[1].length>1">
					<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						切换角色
						<span class="caret"></span>
					</button>
					<ul class="dropdown-menu">
						<li ng-repeat="role in $currentUserInfo[1]" ng-click=switchRole(role)>
							<a href="javascript:;">{{role.label}}</a>
						</li>
					</ul>
				</div>
				<a href="javascript:;" class="ng-cloak white-link remove-underline" ng-click="ctrl.switchLogin()" ng-show="$user.type==-1">
	          		<em class="qm_logini"></em>
	          		<span style="line-height: 30px;color: #fff;">请登录</span>
	          	</a>
	          	<a href="javascript:;" class="ng-cloak white-link remove-underline" ng-click="ctrl.switchLogin()" ng-show="$user.type!=-1">
	          		<em class="qm_logini"></em>
	          		<span style="line-height: 30px;color: #fff;">欢迎您：{{$user.name}}【退出系统】</span>
	          	</a>
			</div>
         </span>
     </div>
 </div>
